package cn.tedu.hospital.settlement.controller;

import cn.tedu.hospital.base.response.JsonResult;
import cn.tedu.hospital.settlement.pojo.dto.SettlementSelect;
import cn.tedu.hospital.settlement.pojo.vo.SettlementVO;
import cn.tedu.hospital.settlement.service.ExpenseSettlementService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Slf4j
@RequestMapping("/v1/Settlement/")
public class ExpenseSettlement {
    @Autowired
     ExpenseSettlementService expenseSettlementService;
    @GetMapping("select")
    public JsonResult select(SettlementSelect settlementSelect){
        log.debug("查询",settlementSelect);
        List<SettlementVO> list = expenseSettlementService.select(settlementSelect);
        return JsonResult.ok(list);
    }
}
